package vnu.edu;

import jade.content.Concept;

public class NewsElement implements Concept {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String title;
	private String description;
	private String link;

	public NewsElement() {
		title = "";
		description = "";
		link = "";
	}

	public NewsElement(String _title, String _description) {
		title = _title;
		description = _description;
	}

	public NewsElement(String _title, String _description, String _link) {
		title = _title;
		description = _description;
		setLink(_link);
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title
	 *            the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	public String toString() {
		return title + ": " + description + ": " + link;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

}
